HtmlAnchor htmlAnchor = new HtmlAnchor(); htmlAnchor.HRef = "www.google.com"; htmlAnchor.InnerText = "Click"; divTest.Controls.Add(htmlAnchor);